-- GENERATED SPELL FOR [Lord Captain Wyrmak] --


function spell0_14445(pUnit, Event) --@Acid Breath,n/a--
pUnit:FullCastSpellOnTarget(12533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14445', 45000, 1)
end

function spell1_14445(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14445', 668, 1)
end

function Sorts_14445(pUnit, Event)
local choix_sorts_14445 = math.random(0, 1)
if choix_sorts_14445 == 0 then
pUnit:RegisterEvent('spell0_14445', 1, 1)
end
if choix_sorts_14445 == 1 then
pUnit:RegisterEvent('spell1_14445', 1, 1)
end
end

function mob14445_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14445', math.random(1500, 3000), 1)
end

function mob14445_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14445_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14445_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14445, 1, 'mob14445_Action')
RegisterUnitEvent(14445, 2, 'mob14445_Leave')
RegisterUnitEvent(14445, 3, 'mob14445_Kill')
RegisterUnitEvent(14445, 4, 'mob14445_Die')
